package com.clkj.zhonghui.dao.product;

import com.clkj.zhonghui.pojo.product.ProductSpecials;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper;

/**
 * @Author：周佳润
 * @Date：2024/7/12 下午3:39
 */
@Repository
public interface ProductSpecialsMapper extends Mapper<ProductSpecials>, MySqlMapper<ProductSpecials> {

    @Update("update t_zh_productSpecials set special_status = #{status}  where special_id  in (${ids})")
    void updateSpecialStatus(String ids,String status);

    @Update("delete t_zh_productSpecials where special_id in (${ids})")
    void deleteSpecial(@Param("ids")String ids);
}
